
This replication archive contains the data and programs necessary to replicate the results in: 

"Ideology of Affluence: Rich Americans' Explanations for Inequality and Redistributive Attitudes," by Liz Suhay, Marko Kla�nja, and Gonzalo Rivero (JOP, forthcoming). 

---------
Datasets: 
---------

survey.dta -- our YouGov survey dataset
acs2015.dta -- American Community Survey PUMS 3-year 2015 file (used for results in Table A15)
cces2016.dta -- CCES 2016 common core dataset (used for results in Table A3)
cps2016.dta -- Current Population Survey 2016 March file (used for results in Table A2)
nes2016.dta -- American National Election Studies 2016 time-series dataset (used for results in Table A3)
scf2016.dta -- Survey of Consumer Finances 2016 summary file (used for results in Figure A1)
county-income.csv, zip_tract.xlsx, geocode_zips.txt, and zips.dta -- zipcode, county income, and geographic data (used for maps in Figure A2)

---------
Programs: 
---------

paper.do -- replicates all figures and tables in the main text of the article
FigureA1.do -- replicates Figure A1 in the online appendix
FigureA2.R -- replicates Figure A2 in the online appendix
TableA2.do -- replicates Table A2 in the online appendix
TableA3.do -- replicates Table A3 in the online appendix
TableA15.do -- replicates Table A15 in the online appendix
appendix.do -- replicates the remaining tables and figures in the online appendix
-controls.do -- designates macros containing lists of control variables in various analyses

--------------------------
Instructions and comments: 
--------------------------

To execute the programs, place all files in one folder, open the do-files or R scripts directly, and run them. FigureA1.do requires that the entire do-file be run at once, given the use of local macros throughout the program. 

The do-file programs require three ado-files (user-written commands) and any associated files: 

frmttable.ado
matmap.ado
grc1leg.ado

To install them, type 'findit [commandname]' in Stata and follow instructions. 

All do-files were written and analyses executed on Stata 15.1 for Windows (64-bit x86-64), Revision 17Dec2018. All the do-files were last updated on July 1, 2019.

All data files are saved in the Stata 12 .dta format. 

For any questions or comments, please write to marko.klasnja@georgetown.edu, or marko.klasnja@gmail.com.
